package com.zyh.homework.test1;

import java.io.*;

/**
 * @Author zyh
 * @Date 2024/8/5 18:51
 * @Description 1、把老师的word笔记文档《【IO流】》，复制到当前项目的testIO文件夹下。
 * 2、要求使用缓冲流和文件流一起实现
 */

public class Test1 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("D:\\course\\02-JavaSE进阶\\day09-IO流\\笔记\\第11章-IO流.doc"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("D:\\Code\\IDEA\\idea_projects\\JavaSE-plus\\day09-code\\src\\com\\zyh\\homework\\test1\\testIO\\第11章-IO流.doc"));
        int len = -1;
        byte[] car = new byte[1024];
        while ((len = bis.read(car)) != -1) {
            bos.write(car, 0, len);
        }
        bos.close();
        bis.close();
    }
}
